home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d26
/
tsgmec11.arc
/
TSGMEC.NWS
< prev
next >
Wrap
Text File
|
1990-08-18
|
2KB
|
39 lines
Sat 18-Aug-90: I have turned my attention back to the more or less
educational games, and devised a new one called linegame. It is
contained in the updated /pc/ts/tsgmec11.arc package. Linegame
expects you to fit lines (y=a+kx) to touch or intercept circles on a
plane in order to gain a maximum number of points. The idea, of
course, is to convey some rudiments of analytic geometry.
If you have Turbo Pascal programming experience, and get the
game, and then look at it, you may appreciate that writing the code
involved many interesting tasks of TP graphics programming. (In fact
much of the motivation to write this game came from an interest to
replenish my personal TP graphics routines library). Let me state a
few of these tasks, both graphics and general. Saving and restoring
the original screen (rather trivial, since it is standard
knowledge). Putting the EGA driver routines into the executable, so
that no external support (.bgi) files are needed. Building a window
system (there are ten separate windows in linegame) with all its
facilities. (For example one needs routines for invoking a window,
clearing it, drawing its borders, writing to (and reading from) it
at the proper locations with a simulated cursor and working delete
key, and so on). Devising a coordinate system for graphics windows,
and drawing lines and circles in these modified coordinates.
Building in graphics the scrolling counterparts of textmode readln
and writeln commands. Performing a checksum selftest on the program
to guard against tampering or viruses.
Fri 9-Mar-90: Started a third package of the educational games and
called it tsgmec10.arc. The first game in the package is an
adaptation of the conventional computerized memory game. The
educational trick is that you have to give in ascii code the
characters shown. It is called Ascigame. Ascigame has also the
option to use it as the ordinary, conventional memory game. - The
second program is more of a utility than a game, or perhaps it
should best be called a learning device. Wordexam is an aid for
cramming for vocabulary examinations in studying foreign languages.
The basic idea of Wordexam is simple. You first prepare a bilingual
vocabulary file with any editor. Wordexam then asks you one word
after another in one of the languages, and you have to give the word
in the other language.